import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../config/color_config.dart';
import '../../widget/my_navbar.dart';
import 'home_logic.dart';
import 'home_state.dart';

class HomePage extends StatelessWidget {
  HomePage({Key? key}) : super(key: key);
  final HomeLogic logic = Get.put(HomeLogic());
  final HomeState state = Get.find<HomeLogic>().state;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MyNavBar(
        isBack: false,
        centerTitle: '首页',
        titleFont: 18.sp,
        titleColor: ColorConfig.text_grey,
        backgroundColor: Colors.white,
      ),
      body:_createBody(),
    );
  }

  _createBody(){
    return const Center(
      child: Text('首页'),
    );
  }

}
